package com.zed.code.model;

import java.io.Serializable;

/**
 * T_ConnectorInfo
 * @author 
 */
public class TConnectorinfo implements Serializable {
    private String connectorid;

    private String equipmentid;

    private String connectorname;

    private Integer connectortype;

    private Integer voltageupperlimits;

    private Integer voltagelowerlimits;

    private Integer ratedcurrent;

    private Float power;

    private String parkno;

    private static final long serialVersionUID = 1L;

    public String getConnectorid() {
        return connectorid;
    }

    public void setConnectorid(String connectorid) {
        this.connectorid = connectorid;
    }

    public String getEquipmentid() {
        return equipmentid;
    }

    public void setEquipmentid(String equipmentid) {
        this.equipmentid = equipmentid;
    }

    public String getConnectorname() {
        return connectorname;
    }

    public void setConnectorname(String connectorname) {
        this.connectorname = connectorname;
    }

    public Integer getConnectortype() {
        return connectortype;
    }

    public void setConnectortype(Integer connectortype) {
        this.connectortype = connectortype;
    }

    public Integer getVoltageupperlimits() {
        return voltageupperlimits;
    }

    public void setVoltageupperlimits(Integer voltageupperlimits) {
        this.voltageupperlimits = voltageupperlimits;
    }

    public Integer getVoltagelowerlimits() {
        return voltagelowerlimits;
    }

    public void setVoltagelowerlimits(Integer voltagelowerlimits) {
        this.voltagelowerlimits = voltagelowerlimits;
    }

    public Integer getRatedcurrent() {
        return ratedcurrent;
    }

    public void setRatedcurrent(Integer ratedcurrent) {
        this.ratedcurrent = ratedcurrent;
    }

    public Float getPower() {
        return power;
    }

    public void setPower(Float power) {
        this.power = power;
    }

    public String getParkno() {
        return parkno;
    }

    public void setParkno(String parkno) {
        this.parkno = parkno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TConnectorinfo other = (TConnectorinfo) that;
        return (this.getConnectorid() == null ? other.getConnectorid() == null : this.getConnectorid().equals(other.getConnectorid()))
            && (this.getEquipmentid() == null ? other.getEquipmentid() == null : this.getEquipmentid().equals(other.getEquipmentid()))
            && (this.getConnectorname() == null ? other.getConnectorname() == null : this.getConnectorname().equals(other.getConnectorname()))
            && (this.getConnectortype() == null ? other.getConnectortype() == null : this.getConnectortype().equals(other.getConnectortype()))
            && (this.getVoltageupperlimits() == null ? other.getVoltageupperlimits() == null : this.getVoltageupperlimits().equals(other.getVoltageupperlimits()))
            && (this.getVoltagelowerlimits() == null ? other.getVoltagelowerlimits() == null : this.getVoltagelowerlimits().equals(other.getVoltagelowerlimits()))
            && (this.getRatedcurrent() == null ? other.getRatedcurrent() == null : this.getRatedcurrent().equals(other.getRatedcurrent()))
            && (this.getPower() == null ? other.getPower() == null : this.getPower().equals(other.getPower()))
            && (this.getParkno() == null ? other.getParkno() == null : this.getParkno().equals(other.getParkno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getConnectorid() == null) ? 0 : getConnectorid().hashCode());
        result = prime * result + ((getEquipmentid() == null) ? 0 : getEquipmentid().hashCode());
        result = prime * result + ((getConnectorname() == null) ? 0 : getConnectorname().hashCode());
        result = prime * result + ((getConnectortype() == null) ? 0 : getConnectortype().hashCode());
        result = prime * result + ((getVoltageupperlimits() == null) ? 0 : getVoltageupperlimits().hashCode());
        result = prime * result + ((getVoltagelowerlimits() == null) ? 0 : getVoltagelowerlimits().hashCode());
        result = prime * result + ((getRatedcurrent() == null) ? 0 : getRatedcurrent().hashCode());
        result = prime * result + ((getPower() == null) ? 0 : getPower().hashCode());
        result = prime * result + ((getParkno() == null) ? 0 : getParkno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", connectorid=").append(connectorid);
        sb.append(", equipmentid=").append(equipmentid);
        sb.append(", connectorname=").append(connectorname);
        sb.append(", connectortype=").append(connectortype);
        sb.append(", voltageupperlimits=").append(voltageupperlimits);
        sb.append(", voltagelowerlimits=").append(voltagelowerlimits);
        sb.append(", ratedcurrent=").append(ratedcurrent);
        sb.append(", power=").append(power);
        sb.append(", parkno=").append(parkno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}